﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Messaging.Messages
{
    public class Message
    {
        public virtual string TemplateName { get { return GetType().Name; } }
        public virtual bool IsHtml { get { return true; } }
        public string Subject { get; set; }
        public Message Layout { get; set; }

        protected Message()
        {
            Subject = string.Empty;
        }

        protected Message(string subject, Message layout = null)
        {
            if (string.IsNullOrWhiteSpace(subject))
            {
                throw new ArgumentNullException("subject");
            }

            Subject = subject;
            Layout = layout;
        }
    }
}
